package net.zjitc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * @auther 郭梦婷
 * @create 2022-05-23 17:12:13
 * @describe 实体类
 */
@TableName("permission")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="Permission对象", description="")
@Data
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "权限id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "权限名称")
    @TableField("authName")
    private String authname;

    @ApiModelProperty(value = "权限名称")
    @TableField("action")
    private String action;

    @ApiModelProperty(value = "父id")
    @TableField("pid")
    private Integer pid;

    @ApiModelProperty(value = "权限等级")
    @TableField("level")
    private Integer level;

    @ApiModelProperty(value = "路径")
    @TableField("path")
    private String path;




    @Override
    public String toString() {
        return "Permission{" +
                "id=" + id +
                ", authname=" + authname +
                ", action=" + action +
                ", pid=" + pid +
                ", level=" + level +
                ", path=" + path +
        "}";
    }
}